package edu.ksu.cis.android.project31;

import android.view.MotionEvent;
import android.widget.Button;

public class ButtonUtils {

	public static boolean inButton(MotionEvent pos, Button b) {
    	if(pos.getX() >= b.getX() && pos.getX() <= b.getX()+b.getWidth()) {
			if(pos.getY() >= b.getY() && pos.getY() <= b.getY()+b.getHeight()) {
				return true;
			}
		}
    	return false;
    }
}
